// 精品课程
window.onload=function(){
    var wangLuo=document.getElementById('wangluo')
    var zhiBo=document.getElementById('zhibo')
    var faceClass=document.getElementById('face_class')
    var allClass=document.getElementById('all_class')

    var wang=document.getElementById('wang');
    var zhi=document.getElementById('zhi')
    var face=document.getElementById('face')
    var all=document.getElementById('all')
     function light(){
        wangLuo.style.color='#000'
        zhiBo.style.color='#000'
        faceClass.style.color='#000'
        allClass.style.color='#000'
     }
    wangLuo.onclick=function(){
        wang.style.display="block"
        zhi.style.display='none';
        face.style.display='none';
        all.style.display='none';
        light()
        this.style.color='#546212';
    }
    zhiBo.onclick=function(){
        zhi.style.display='block';
        face.style.display='none';
        all.style.display='none';
        wang.style.display='none';
        this.style.color='red'
        light()
        this.style.color='#546212';
    }
    faceClass.onclick=function(){
        zhi.style.display='none';
        face.style.display='block';
        all.style.display='none';
        wang.style.display='none';
        light()
        this.style.color='#546212';
    }
    allClass.onclick=function(){
        zhi.style.display='none';
        face.style.display='none';
        all.style.display='block';
        wang.style.display='none';
        light()
        this.style.color='#546212';
    }
}